﻿using AutoMapper;
using WAMM.Domain.Services.ViewModels;

namespace WAMM.WebUI {
    public class ApplicationBootstrapper {

        public static void ConfigureAutoMapper() {
            Mapper.CreateMap<WAMM.WebUI.Models.PersonWebUIModel, PersonServiceModel>();
            Mapper.CreateMap<WAMM.WebUI.Models.FamilyWebUIModel, FamilyServiceModel>();
            Mapper.CreateMap<PersonServiceModel, WAMM.WebUI.Models.PersonWebUIModel>();
            Mapper.CreateMap<FamilyServiceModel, WAMM.WebUI.Models.FamilyWebUIModel>();
            Mapper.CreateMap<Wamm.Model.Entities.Person, PersonServiceModel>();
            Mapper.CreateMap<Wamm.Model.Entities.Family, FamilyServiceModel>();
        }
    }
}